package cn.fanxin.enums;

/**
 * @Author: china-fanxin
 * @Website: https://fan-xin.cn
 * @Description: 特殊的时间移动类型枚举类
 * @Date: 2022/11/24 16:04
 * @Param:
 * @return:
 */
public enum DateTypeEnum {

    /**
     * @Author: china-fanxin
     * @Website: https://fan-xin.cn
     * @Description: 当前类型时间的最初
     * @Date: 2022/11/24 14:47
     */
    ST("ST"),
    /**
     * @Author: china-fanxin
     * @Website: https://fan-xin.cn
     * @Description: 当前时间类型的最末
     * @Date: 2022/11/24 14:47
     */
    EN("EN");

    DateTypeEnum(String value){
        this.value = value;
    }

    private String value;


    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    /**
     * @Author: china-fanxin
     * @Website: https://fan-xin.cn
     * @Description: 枚举值转为逗号分隔的字符串
     * @Date: 2022/11/24 15:10
     * @Param: []
     * @return: java.lang.String
     */
    public static String toDefString() {
        String res ="";
        for (DateTypeEnum value: DateTypeEnum.values()){
            res = res +value.getValue()+",";
        }
        res = res.substring(0,res.length()-1);
        return res;
    }
}
